<?php
include "../site_specific/project.php";
include "../includes/constants.php";
include "../site_specific/external_constants.php";
include "../includes/phpmailer/class.phpmailer.php";
include "../includes/phpmailer/class.smtp.php";
include "../includes/utilities.php";
include "../includes/pages.php";
include "../includes/database.php";
include "../includes/users.php";
include "../includes/date.php";
include "../includes/text.php";
include "../includes/files.php";

# Establish database connection
establishDatabaseConnection();

$flag = $_GET["flag"];

$sql = "SELECT * FROM ".$PROJECT_DB_TABLES["pages"]." WHERE p_id='".$flag."'";

$result = getRecord($sql);

$content = parseFlashLinks(parseFlashXML($result[0]["p_content"]));

echo $content;

?>